import Vue from 'vue'
import App from './App'
import store from './store'
// console.log(store)

const {
	// request,
	dateFormat
} = require('@/utils/t-request.js');

Vue.filter('dateform', function(value) {
	if (!value) return ''
	return dateFormat("YYYY-mm-dd", new Date(value))
});

// 自定义头部
import cuCustom from './colorui/components/cu-custom.vue'
Vue.component('cu-custom', cuCustom)

Vue.config.productionTip = false

App.mpType = 'app'

// Vue.prototype.baseUrl = 'http://localhost:10048';
Vue.prototype.baseUrl = 'https://xtspace.cn/xcx';

const app = new Vue({
	data: {
		// baseUrl: 'http://localhost:10048',
		// baseUrl: 'https://xtspace.cn/xcx',
	},
	...App,
	store
})
app.$mount()
